
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:xim/common/get_style_view.dart';
import 'package:xim/widget/common/state.dart';

class LoginGuidePageStyle extends Style with AppBarMixin  {

  @override
  Color get appBarBgColor => Colors.transparent;

  @override
  double get elevation => 0;

  final btnWidth = 0.4.sw;

  Widget get privateLoginBtn => Container(
    width: btnWidth,
    padding: const EdgeInsets.symmetric(vertical: 16),
    decoration: BoxDecoration(
        color: Colors.transparent,
        border: Border.all(
            color: Colors.blue
        ),
        borderRadius: const BorderRadius.all(Radius.circular(30))
    ),
    child: const Center(
        child: Text("使用私钥进行登录", style: TextStyle(fontSize: 14),)
    ),
  );

  Widget get createAccountBtn => Container(
    width: btnWidth,
    padding: const EdgeInsets.symmetric(vertical: 16),
    decoration: BoxDecoration(
        color: Colors.blue,
        border: Border.all(
            color: Colors.blue
        ),
        borderRadius: const BorderRadius.all(Radius.circular(30))
    ),
    child: const Center(
        child: Text(
            "创建新账号",
            style: TextStyle(fontSize: 14, color: Colors.white)
        )
    ),
  );

}